package com.mas.admin.biz.dal.mysql.oauth2;

import com.mas.admin.biz.dal.dataobject.oauth2.OAuth2ClientDO;
import com.mas.framework.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;

/**
 * @author godyao
 * @description OAuth2ClientMapper
 * @date 2023年01月31日22:25
 */
@Mapper
public interface OAuth2ClientMapper extends BaseMapperX<OAuth2ClientDO> {
    @Select("select count(*) from system_oauth2_client WHERE update_time > #{maxUpdateTime}")
    int selectCountByUpdateTimeGt(LocalDateTime maxUpdateTime);
}
